﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpdw.Structure.DecoratorPattern
{
    /// <summary>
    /// 饮料
    /// </summary>
    public abstract class Beverage
    {
        protected string description = "Unknown Beverage";

        /// <summary>
        /// 描述
        /// </summary>
        public virtual string Description
        {
            get
            {
                return description;
            }
            protected set
            {
                description = value;
            }
        }

        /// <summary>
        /// 花费
        /// </summary>
        /// <returns></returns>
        public abstract double Cost();
    }
}
